﻿using ControlCenter.Operation;
using System.Threading.Tasks;
using ControlCenter.Model.WebApiDto;

namespace ControlCenter.ApplicationService
{
    /// <summary>
    /// 机器人执行结果回调接口
    /// </summary>
    public interface IResultCallbackService
    {
        /// <summary>
        /// 任务日志回调
        /// </summary>
        /// <param name="executionCallbackDto">请求参数DTO</param>
        /// <returns></returns>
        Task<bool> ExecutionPackageCallback(ExecutionCallbackDto executionCallbackDto);

        /// <summary>
        /// 安装结果回调，失败后更新
        /// </summary>
        /// <param name="installPackageCallbackDto">请求参数DTO</param>
        /// <returns></returns>
        Task<bool> InstallPackageCallback(InstallPackageCallbackDto installPackageCallbackDto);
    }
}
